export const postLevel = [
{
    value: '',
    label: '全部'
}, {
    value: 0,
    label: 0
}, {
    value: 1,
    label: 1
}, {
    value: 2,
    label: 2
}, {
    value: 3,
    label: 3
}, {
    value: 4,
    label: 4
}, {
    value: 5,
    label: 5
}, {
    value: 6,
    label: 6
}, {
    value: 7,
    label: 7
}, {
    value: 8,
    label: 8
}, {
    value: 9,
    label: 9
}];

export const getStatusName = (status) => {
    switch (status) {
        case 'closed':
            return '关闭';
        case 'receive':
            return '已收货';
        case 'comment':
            return '已评价';
        case 'balance':
            return '交易成功';
        case 'delivery':
            return '已发货';
        case 'payment-done':
            return '已付款';
        case 'payment':
            return '已下单';
    }
};

export const addUS = (data) => {
    if(data == 0){
        return '——';
    }else {
        return 'US$ ' + data;
    }
};


export const getProductStatusName = (status) => {
    switch (status) {
        case 'start':
            return '已上架';
        case 'stop':
            return '已下架';
        default:
            return '待上架'
    }
};

